from scrapy import cmdline

from AddStockIndicator.spiders.AddStock import AddstockSpider


class AddStock:
    exec = "scrapy crawl " + AddstockSpider.name
    print("启动" + exec)
    cmdline.execute(exec.split())

#
# class AddStock:
#     s = "\xe7\xbe\x8e\xe8\x82\xa1\xe6\x8e\x92\xe8\xa1\x8c"
#     ss = s.encode('raw_unicode_escape')
#     print(ss)  # 结果：b'\xe9\x9d\x92\xe8\x9b\x99\xe7\x8e\x8b\xe5\xad\x90'
#     sss = ss.decode()
#     print(sss)

